package com.HomeWorkhsp.Chapter08.extends_.improve_;

/**
 * Enjoy programming!!!
 * Time: 2021/11/18 -  19:59
 */
public class Student {
    public String name ;
    public int age;
    private double score;
    //共有方法
    public void setScore(double score){
        this.score = score;
    }

    public void showInfo(){
        System.out.println("学生名 " + name + " 年龄" + age + " 成绩 " + score);
    }
}
